
<template>
    <div class="hd-pop" v-show="open">
        <div class="box">
            <span style="margin-right:15px">
                <a href="#" class="open">立即打开</a>
                <a href="javascript:;" class="close" @click="close"></a>
            </span>

            <div class="con">
                <img src="../assets/app_logo.png" alt="">
                <div class="right">
                    <h3>天化云</h3>
                    <p class="detail">提升你的专业技能</p>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
  data(){
      return{
          open:true,
          top:60
      }
  },
   methods: {
        close: function() {
           this.open=false,
           this.top=10
        }
    }
}
</script>


<style scoped>
a {
    text-decoration: none;
    color: #a5a5a5;
}

img {
    max-width: 100%;
}

.hd-pop {
    
    margin-top: 0px;
    width: 100%;
    display: block;
    position: fixed;
    z-index: 1400;
    background: rgba(0, 0, 0, .7);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    color: #fff;
    padding: 10px;
    overflow: hidden;
    background: #424242;
}

.hd-pop .box {
    height: 35px;
    overflow: hidden;
}

.hd-pop span {
    display: block;
    float: right;
    overflow: hidden;
}

.hd-pop .con {
    overflow: hidden;
    height: 35px;
    line-height: 1.1;
}

.hd-pop img {
    float: left;
    width: 35px;
    height: 35px;
    border-radius: 8px;
}

.hd-pop .right {
    padding-left: 40px;
}

.hd-pop .con h3 {
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: normal;
    height: 18px;
    overflow: hidden;
}

.hd-pop .con p {
    height: 15px;
    overflow: hidden;
}

.detail {
    font-size: 14px;
}

.hd-pop .open {
    margin-right: 15px;
    padding: 0 5px;
    height: 35px;
    line-height: 35px;
    color: #fff;
    font-size: 13px;
    background: #ff424b;
    border-radius: 4px;
}

.hd-pop .close {
    width: 17px;
    height: 35px;
     background: url(../assets/close.png) no-repeat center;
    -webkit-background-size: 100% auto;
    -o-background-size: 100% auto;
    -moz-background-size: 100% auto;
    background-size: 100% auto;
}

.hd-pop a {
    float: left;
}
</style>
